package com.turbo.cloud.gateway.init;

import com.turbo.cloud.gateway.filter.auth.ApiAuthLogic;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * 应用启动
 *
 * @author zhangluning
 */
@Slf4j
@RequiredArgsConstructor
@Component
public class AppRunner implements ApplicationRunner {

    final ApiAuthLogic apiAuthLogic;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        log.info("---#开始#--springBoot项目启动时执行的代码---");
        log.info("---#结束#--springBoot项目启动时执行的代码---");
    }
}
